import Request from './request';
export type { DeepPartial, PagePayload, IRes, IResPage, IResList, IResPageList } from './type';

const BASE_URL = import.meta.env.MODE === 'development' ? '/api' : 'test';

// 接口实例
export const http = new Request({ baseURL: '/api' });
// 本地node服务测试接口
export const testHttp = new Request({ baseURL: '/api' });

export const authHttp = new Request({ baseURL: BASE_URL + '/auth' });
export const bizHttp = new Request({ baseURL: BASE_URL + '/archive-biz/v1' });
export const dasHttp = new Request({ baseURL: BASE_URL + '/das-archive-biz/v1' });
export const minioHttp = new Request({ baseURL: BASE_URL + '/minio' });
export const messageHttp = new Request({ baseURL: BASE_URL + '/message/v1' });
export const configHttp = new Request({ baseURL: BASE_URL + '/system-config/v1' });

export const chatHttp = new Request({ baseURL: BASE_URL + '/api/chat/v1' });
